package com.itbbj.principle.d4_DIP.demo1;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Computer {
    private IntelCpu interCpu;
    private IntelMemory interMemory;
    public Computer(){

    }
    public Computer(IntelCpu cpu, IntelMemory interMemory)
        {
            this.interCpu = cpu;
            this.interMemory = interMemory;
        }
        public void startRun(){
        interCpu.cacluate();
        interMemory.storage();
        }
}
